import axios from "../../axios";


// 修改帖子
export const updateforum = (param,formdata) => {
    return axios.request({
      url: "/shops/shopper/store/update/forum",
      method: "PUT",
      params: param,
      data:formdata,
      maxContentLength:Infinity,
      maxRedirects:5,
      maxBodyLength:Infinity,
    });
};
// 评论帖子
export const commentForum = (param,formdata) => {
    return axios.request({
      url: "/shops/comment/forum",
      method: "POST",
      params: param,
      data:formdata,
      maxContentLength:Infinity,
      maxRedirects:5,
      maxBodyLength:Infinity,
    });
};

// 发表
export const publishForum = (param,formdata) => {
    return axios.request({
      url: "/shops/shopper/store/addForum",
      method: "POST",
      params: param,
      data:formdata,
      maxContentLength:Infinity,
      maxRedirects:5,
      maxBodyLength:Infinity,
    });
};


// 删除帖子
export const deleteForum = (param) => {
    return axios.request({
      url: "/shops/shopper/store/deleteForum",
      method: "POST",
      params: param,
    });
};


// 删除帖子
export const getForumdata = (param) => {
    return axios.request({
      url: "/shops/shopper/store/show/shop/forum",
      method: "GET",
      params: param,
    });
};